From 98c04137b47dd5253cdfcf18e5b4ad6e68258c46 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sat, 30 Nov 2024 15:49:08 +0100 Subject: [PATCH] luci-proto-ipv6: set recommended default for norelease See https://github.com/openwrt/luci/issues/7410 Basically: RFC9096 updates the language in order to avoid DHCPv6 RELEASE upon reboot to avoid re-addressing. (now: RELEASE == SHOULD NOT) Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/protocol/dhcpv6.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js index 235bbe2cb3..2dac7b78f4 100644 --- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js +++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js @@ -32,6 +32,8 @@ return network.registerProtocol('dhcpv6', { o.default = 'auto'; o = s.taboption('general', form.Flag, 'norelease', _('Do not send a Release when restarting'), _('Enable to minimise the chance of prefix change after a restart')); + o.default = '1'; + o.rmempty = false; o = s.taboption('advanced', form.Value, 'clientid', _('Client ID to send when requesting DHCP')); o.datatype = 'hexstring'; -- 2.30.2